package com.kgc.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author: luo
 * @date: 2024/4/7 10:07
 * @Description:
 * @Version: 1.0
 *
 * 系统异常
 */
@Getter
@Setter
public class SystemException extends RuntimeException{
    private Integer code;

    public SystemException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public SystemException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }
}
